package com.zch.house.service;

import java.sql.Date;
import java.util.List;

import com.zch.house.entity.LeaseContract;

public interface LeaseContractService {
	/**
	 * 根据条件模糊查询相应的租赁合同信息
	 * @param sql
	 * @param params
	 * @return
	 */
	public List<LeaseContract> getAllLeaseContractByPage(String number,Date startDate,Date endDate,int state,int pageIndex);
	/**
	 * 获得查询的总页码
	 * @param sql
	 * @param params
	 * @return
	 */
	public int getTotalCount(String number,Date startDate,Date endDate,int state);
	/**
	 * 根据租赁合同的唯一标识获得租赁合同信息
	 * @param h_id
	 * @return
	 */
	public LeaseContract getLeaseContractById(int h_id);
	/**
	 * 添加租赁合同信息
	 * @param lc
	 * @return
	 */
	public boolean addLeaseContract(LeaseContract lc);
	/**
	 * 根据租赁合同的唯一标识删除租赁合同信息
	 * @param h_id
	 * @return
	 */
	public boolean deleteLeaseContract(int h_id);
	/**
	 * 修改租赁合同信息
	 * @param lc
	 * @return
	 */
	public boolean updateLeaseContract(LeaseContract lc);
}
